package com.itheima;

public class Demo01EachArray {
    public static void main(String[] args) {
        int [] array={0,100,300,400,500};
        for (int i=0;i<array.length;i++){
            System.out.println(array[i]);

        }
        System.out.println("------------");
        for (int i = array.length - 1; i >= 0; i--) {
            System.out.println(array[i]);
        }
    }
}
